import request from '@/utils/request'

// 查询路面异常信息列表
export function listRoadBreak(query) {
  return request({
    url: '/smartHighway/roadBreak/list',
    method: 'get',
    params: query
  })
}

// 查询路面异常信息详细
export function getRoadBreak(breakId) {
  return request({
    url: '/smartHighway/roadBreak/' + breakId,
    method: 'get'
  })
}

// 新增路面异常信息
export function addRoadBreak(data) {
  return request({
    url: '/smartHighway/roadBreak',
    method: 'post',
    data: data
  })
}

// 修改路面异常信息
export function updateRoadBreak(data) {
  return request({
    url: '/smartHighway/roadBreak',
    method: 'put',
    data: data
  })
}

// 删除路面异常信息
export function delRoadBreak(breakId) {
  return request({
    url: '/smartHighway/roadBreak/' + breakId,
    method: 'delete'
  })
}
